package com.itcast.regi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itcast.regi.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {

    @Select("select id from dish_flavor where dish_id = #{id} ")
    List<Long> selectFlavor(@Param("id")Long id);

}
